#include<iostream>
#include<string>
using namespace std;

class Person
{
public:
	string name;
	int age;
	
	Person(const string& name, int age)
	{
		this->name = name;
		this->age = age;
	}
	
	bool operator==(Person& p)
	{
		return p.name == name && p.age == age;
	}
};

int main()
{
	Person p1("zhangsan", 18);
	Person p2("zhangsan", 18);
	if (p1 == p2)
	{
		cout << "==\n";
	}
	else
		cout << "!=\n";
	return 0;
}
